package org.bim.view.drag.design.constant;

import java.util.regex.Pattern;

public interface CommonConstant {
    /**
     * 文件上传类型（本地：local，Minio：minio，阿里云：alioss,恒嘉 oss： hj-oss）
     */
    String UPLOAD_TYPE_LOCAL = "local";
    String UPLOAD_TYPE_MINIO = "minio";
    String UPLOAD_TYPE_OSS = "alioss";
    String PROXY_HEADER_KEY="PROXY_URL";
    String USER_TOKEN_KEY = "drag-token";
    String TOKEN = "token";
    String SEMICOLON = ";";

    /**
     * 邮箱格式
     */
    String REG_EMAIL_FORMAT = "^[a-z_0-9.-]{1,64}@([a-z0-9-]{1,200}.){1,5}[a-z]{1,6}$";
    Pattern PATTERN_EMAIL_FORMAT = Pattern.compile(REG_EMAIL_FORMAT);

    String EMAIL_DEFAULT_TEMPLATE = "mail/emaiDefaultTemplate";
    /**
     * 用户激活 / 重发激活邮件模板
     */
    String USER_ACTIVATE_EMAIL_TEMPLATE = "mail/userActivateEmailTemplate";


    String HTTP_PROTOCOL = "http";

    String HTTPS_PROTOCOL = "https";

    String PROTOCOL_SEPARATOR = "://";

    String SLASH = "/";
    String SPACE = " ";

    String EMPTY = "";
    String INDEX_PAGE = "index.html";
}
